<?php
	require("includes/basic.php");
	if(!isset($_SESSION['uid']) && $userType!='A')
	{
		header("location:authorise.php");
	}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
	<HEAD>
		
		<TITLE> :: <?php echo $appName?> :: </TITLE>
		<link rel='stylesheet' type='text/css' href='style/inner.css'>
		<link rel='stylesheet' type='text/css' href='style/admin.css'>
		<script type='text/javascript' src='js/inner.js'></script>
	</HEAD>

	<body unselectable="on" class="dialog"> 
		<?php $pageName="Administration View"; ?>
		<?php require("includes/header.php"); ?>

				        
<?php	

$rid=$_REQUEST['r'];
//echo $opencid;


$resorcedetails=mysql_query("SELECT * FROM user_master WHERE user_id=$rid");

while($row=mysql_fetch_array($resorcedetails))
{

//extract($row);
$rFname=$row['first_name'];
$rLname=$row['last_name'];
$mob=$row['mobile'];
$uname=$row['user_name'];
$pass=base64_decode($row['user_password']);
$record=$row['record_status'];

$created=$row['user_created_on'];
$record=$row['record_status'];
?>
<table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td id='screenH'>
		<div class='pathbar'><a href='index.php'>Admin</a> -> <a href="view-resources.php">Resources</a> -> customer details</div>
		<div class='screenTitle'>
			<table width='100%' cellspacing='0'>
				<tr>
					<td>
						<?php echo "Resource Details";?>
					</td>		
				</tr>
			</table>
		</div>
</table>
<table>
<tr><td style="height:10px;">&nbsp;</td></tr>
</table>
	<center>
	<table border="0" width="90%" style="border:1px solid #E0DFE3;" cellspacing="0">
	
<tr><td colspan="5" align="left" style="border-bottom:1px solid #E0DFE3;padding:5px;font-weight:bold;font-size:13px;background-color:#E0DFE3;"><b>RESOURCE DETAILS</b></td></tr>


<tr>
	<td class="open">First Name</td>
    <td class="open_data"><?php echo $rFname; ?></td>
</tr>
<tr>
	<td class="open">Last Name</td>
    <td class="open_data"><?php echo $rLname; ?></td>
</tr>

<tr>
	<td class="open">Mobile</td>
    <td class="open_data"><?php echo $mob; ?></td>
</tr>

<tr>
	<td class="open">User Name</td>
    <td class="open_data"><?php echo $uname; ?></td>
</tr>
<!--<tr>
	<td class="open">Password</td>
    <td class="open_data"><?php /*echo $pass; */?></td>
</tr>-->

<tr>
	<td class="open">Record Status</td>
    <td class="open_data">
		<?php 
			if($record=='Y')
			{
			echo "Yes";
			}
			else
			{
				echo "No";
			}
		?>
	</td>
</tr>

<?php 
$res=mysql_query("SELECT * FROM task_assigned_to WHERE task_assigned_to=$rid");
$ro=mysql_num_rows($res);
//extract($ro);

?>
<tr>
	<td class="open">No. of Tasks</td>
    <td class="open_data"><?php echo $ro; ?></td>
</tr>


<?php 

}
?>
	</table>


	</center>
	
	<style>
	.footer{
		bottom:0px;
		position:absolute;
	}
	</style>
	
		<?php require("includes/footer.php"); ?>
	</BODY>
</HTML>
